CREATE TABLE [dbo].[T_ADDRESS_WAREHOUSE]
(
[ADDRESS_ID] [bigint] NULL,
[WAREHOUSE_ID] [bigint] NULL,
[CREATE_DATE] [datetime] NOT NULL,
[DISABLE_DATE] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[T_ADDRESS_WAREHOUSE] ADD CONSTRAINT [FK__T_ADDRESS__ADDRE__4CA06362] FOREIGN KEY ([ADDRESS_ID]) REFERENCES [dbo].[T_ADDRESS] ([ADDRESS_ID])
GO
ALTER TABLE [dbo].[T_ADDRESS_WAREHOUSE] ADD CONSTRAINT [FK__T_ADDRESS__ADDRE__4D94879B] FOREIGN KEY ([ADDRESS_ID]) REFERENCES [dbo].[T_ADDRESS] ([ADDRESS_ID])
GO
ALTER TABLE [dbo].[T_ADDRESS_WAREHOUSE] ADD CONSTRAINT [FK__T_ADDRESS__WAREH__4E88ABD4] FOREIGN KEY ([WAREHOUSE_ID]) REFERENCES [dbo].[T_WAREHOUSE] ([WAREHOUSE_ID])
GO
ALTER TABLE [dbo].[T_ADDRESS_WAREHOUSE] ADD CONSTRAINT [FK__T_ADDRESS__WAREH__4F7CD00D] FOREIGN KEY ([WAREHOUSE_ID]) REFERENCES [dbo].[T_WAREHOUSE] ([WAREHOUSE_ID])
GO
